package com.example.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: H_tao_X
 * Date: 2022-07-13
 * Time: 16:12
 */

@Controller
public class UserController {
    @ResponseBody // 返回一个非静态页面的数据
    @RequestMapping("/sayhi")// 设置路由地址 全是小写
    public String sayHi() {
        return "hello,word,sb,wxl…………^^";
    }
}
